/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package upgmadendro.population;

import java.util.BitSet;

/**
 *
 * @author Shadev
 */
public class Population {
    private String name = null;
    private BitSet genes = null;
    private int vectorSize =0 ;

    public Population(int size){
        genes = new BitSet(size);
        vectorSize=size;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the genes
     */
    public BitSet getGenes() {
        return genes;
    }

    public void printState(){
        for(int i=0;i<vectorSize;i++){
            System.out.println(genes.get(i));
        }
    }

    public int getVectorSize() {
        return vectorSize;
    }

    public void setVectorSize(int vectorSize) {
        this.vectorSize = vectorSize;
    }
}
